#include<iostream>
#include<fstream>
#include<string>
#include<map>
#include<set>
using std::endl;
using std::cout;
using std::string;
using std::ifstream;
using std::map;
using std::set;
using std::ofstream;

class TextQeury{
public:
    void readLine(const char*filename);
private:
    map<string,int> _dic;
    map<string,set<int>> worldnumber;
};

void TextQeury::readLine(const char*filename){
    string Line;
    int id = 0;
    ifstream ifs("china_daily.txt");
    if(!ifs.good()){
        cout<<"ifs open file fail!"<<endl;
        return;
    }
    while(std::getline(ifs,Line)){
        id++;
        cout<<"id:"<<id<<" "<< Line.size()<<" "<<Line <<endl;
        _dic.insert({Line,id});
    }
    //for(auto &nu:_dic){
        //cout<<nu.second <<" "<<nu.first<<endl;
    //}
    //auto it = _dic.find("avoid barred roads for delivery vehicles.");
    //cout<<it->second<<endl;
}